/*
 * Copyright 2004-2005 公司名
 * 本软件及其所有拷贝的名称，与光盘上或本软件中注明的公司同在。
 * 本软件及文档享有版权，并受国家版权法及国际协约条款的保护。
 * 您不可以从本软件中去掉其版权声明；并保证为本软件的拷贝（本部或部分）* 复制版权声明。
 * 您同意制止以任何形式非法拷贝本软件及文档。
 * 版权信息参见：
 *      http://www.companyname.cn/licenses
 */

package com.companyname.projectname.modulename.model;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.Vector;

import com.companyname.common.base.model.BaseObject;
import com.companyname.common.base.util.PriUtils;

/**
 * <p>Title: 实体名</p>
 * <p>Description: TransferObject </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: 公司名</p>
 * @ $Author: author $
 * @ $Date: 2004/12/17 13:54:17 $
 * @ $Revision: 1.4 $
 * @ created in 创建日期
 *
 */

public class ModelName extends BaseObject
                       implements Serializable
{
        private String name;

        private String type;

        private String remark;

        /**
         * 构造函数
         */
        public ModelName()
        {
                // for hibernate
        }

        public ModelName(ModelName parent,
                         String id,
                         String code,
                         String name,
                         String type,
                         String remark,
                         Set sons)
        {
                this.parent = parent;
                this.id = id;
                this.code = code;
                this.name = name;
                this.type = type;
                this.remark = remark;
                this.sons = sons;
                this.setPri(PriUtils.value());
        }
        
        public ModelName(ModelName parent,
                         String code,
                         String name,
                         String type,
                         String remark,
                         Set sons)
        {
                this.parent = parent;
                this.code = code;
                this.name = name;
                this.type = type;
                this.remark = remark;
                this.sons = sons;
        }
        
        public ModelName(String code,
                         String name,
                         String type,
                         String remark)
        {
                this.code = code;
                this.name = name;
                this.type = type;
                this.remark = remark;
        }

        public String getName()
        {
                return this.name;
        }

        public void setName(String name)
        {
                this.name = name;
        }

        public String getType()
        {
                return this.type;
        }

        public void setType(String type)
        {
                this.type = type;
        }

        public String getRemark()
        {
                return this.remark;
        }

        public void setRemark(String remark)
        {
                this.remark = remark;
        }

        /** 采用框架提供的操作日志必须填写的项目 */
        public void setModeldetail()
        {
                this.setModelFieldDetail("id",this.id);
                this.setModelFieldDetail("代码",this.code);
                this.setModelFieldDetail("名称",this.name);
                this.setModelFieldDetail("优先级",this.pri);
        }
}
